package com.zz.nondatain.network;

/**
 * API响应的基础类
 * @param <T> 响应数据类型
 */
public class BaseResponse<T> {
    private int code;
    private String message;
    private T data;
    
    public boolean isSuccess() {
        return code == 200; // 根据实际API响应码定义成功条件
    }
    
    public int getCode() {
        return code;
    }
    
    public void setCode(int code) {
        this.code = code;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    public T getData() {
        return data;
    }
    
    public void setData(T data) {
        this.data = data;
    }
} 